package edu.utdallas.cs.securechat.utils;

public class Logger {
	public final static int DEBUG = 0, INFO = 1, ERROR = 2;
	public static int loggingLevel = 1;
	
	public static void log(int level, String msg){
		String logOut = "";
		if(level == DEBUG)
			logOut = "[DEBUG] ";
		else if(level==INFO)
			logOut = "[ INFO] ";
		else if(level==ERROR)
			logOut = "[ERROR] ";
		if(loggingLevel <= level){
			System.out.println(logOut+msg);
		}
	}
}
